//
//  ORStartPageView.m
//  NewsWith
//
//  Created by rimi on 2016/12/15.
//  Copyright © 2016年 dongfumei. All rights reserved.
//

#import "ORStartPageView.h"

@interface ORStartPageView ()

@end

@implementation ORStartPageView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.bgImageView];
        [self addSubview:self.experienceBtn];
    }
    return self;
}


-(UIImageView *)bgImageView{
    if (!_bgImageView) {
        _bgImageView = [[UIImageView alloc]initWithFrame:self.frame];
        _bgImageView.image = [UIImage imageNamed:@"启动页"];
        
    }
    return _bgImageView;
}

-(UIButton *)experienceBtn{
    if (!_experienceBtn) {
        _experienceBtn = [[UIButton alloc]initWithFrame:AAdaptionRect((kBaseWidth - 150)/2, CGRectGetMaxY(self.frame)/AAdaptationWidth()-120, 160, 40)];
        _experienceBtn.backgroundColor = [UIColor clearColor];
        
    }
    return _experienceBtn;
}


@end
